package com.gimi.cloud.bbp.dao.dao.User;

import com.gimi.cloud.bbp.dao.myMapper.MyMapper;
import com.gimi.cloud.bbp.entity.userInfo.RdUserInfoEntity;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 
 * @author chendi
 * @date 2017年12月27日
 */
public interface UserInfoDao extends MyMapper<RdUserInfoEntity> {
	
	@Select("SELECT * FROM rd_user_info WHERE user_id = #{userId}")
	RdUserInfoEntity selectByUserId(@Param(value = "userId") Integer userId);

	@Select("SELECT * FROM rd_user_info WHERE card_id = #{cardId}")
	RdUserInfoEntity selectByCardId(String cardId);
}
